<?php include ("include/config.php"); ?>
<script type = "text/javascript" src = "search_engine.js"></script>
<?php
	$sql1 = "SELECT * FROM category WHERE status=1";
	$rs1 = mysql_query($sql1);
	if($rs1)
		{
?>
<form action = "index_searched.php" method = "post">
<div id="tsanpham" style = "width:100%;background:green;"><p class="tp">Tên sản phẩm</p></div> <br/> 
<input style = "margin-top:4px;margin-bottom:4px;margin-left:5px;"name = "p_name" type = "text" size = "20" /> <input type = "image" alt = "submit" name = "findit" src = "images/search.png" width = "16px" height = "16px" style = ""/><br/> 
<div id="tsanpham" style = "width:100%;background:green;"><p class="tp">Loại sản phẩm</p></div><br/>
<select style = "margin-top:4px;margin-bottom:4px;margin-left:5px;float:left;" id = "s1" name = "p_category" > 
	<option value = "all"> Tất cả </option>
</select>
	<?php
		while($rw1 = mysql_fetch_array($rs1))
			{
			echo '<script> add_option("'.$rw1["name"].'"); </script>';
			}
		}
		
	?>

</form>
